import request from '@/utils/request'

export const getOperationsApi = (jobCode, pageNum, pageSize) => {
  return request.get(`/warehouse/operations/list?jobCode=${jobCode}&pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const addOperationApi = (data) => {
  return request.post('/warehouse/operations', data)
}
export const confirmOperationApi = (id) => {
  return request.put(`/warehouse/operations/confirm?id=${id}`)
}
export const tzOperationApi = (id) => {
  return request.put(`/warehouse/operations/tz?id=${id}`)
}